|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.common.support.CustomDataType
public class CustomDataType
CustomDataType.
| Constructor Summary | |
|---|---|
CustomDataType(java.lang.String name,
java.lang.String primaryFieldName,
CustomDataField[] fields)
Creates a new CustomDataType. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFieldInitialValue(java.lang.String fieldName)
Returns the initial value for new instances of the specified field. |
java.lang.String[] |
getFieldNames()
Returns the names of the fields that objects of this type support. |
IDataType |
getFieldType(java.lang.String fieldName)
Returns the type of the specified field or null if no such
field exists. |
java.lang.String |
getName()
Returns the unique name of this type. |
java.lang.String |
getPrimaryFieldName()
Returns the name of the field that objects of this type treat as their primary value or null if no such field is defined. |
boolean |
isArrayType()
Returns true if this type represents an array type. |
boolean |
isComplexType()
Returns true if this type represents a type with named fields. |
boolean |
isSimpleType()
Returns true if this type represents a boolean, date, decimal, number, or string type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomDataType(java.lang.String name,
java.lang.String primaryFieldName,
CustomDataField[] fields)
name - | Method Detail |
|---|
public java.lang.String getName()
IDataType
getName in interface IDataTypepublic java.lang.String getPrimaryFieldName()
IDataTypenull if no such field is defined.
getPrimaryFieldName in interface IDataTypepublic java.lang.String[] getFieldNames()
IDataType
getFieldNames in interface IDataTypepublic java.lang.String getFieldInitialValue(java.lang.String fieldName)
IDataType
getFieldInitialValue in interface IDataTypefieldName - The name of the field to determine the initial value of.
public IDataType getFieldType(java.lang.String fieldName)
IDataTypenull if no such
field exists.
getFieldType in interface IDataTypefieldName - The name of the field to determine the type of.
null if no such
field exists.public boolean isSimpleType()
IDataType
isSimpleType in interface IDataTypepublic boolean isArrayType()
IDataType
isArrayType in interface IDataTypepublic boolean isComplexType()
IDataType
isComplexType in interface IDataType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||